<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<link rel="stylesheet" type="text/css" href="<%=basePath%>/js/ext/resources/css/ext-all.css" />
<link rel="stylesheet" type="text/css" href="<%=basePath%>/style/menuicon.css" />
<script type="text/javascript" src="<%=basePath%>/js/ext/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="<%=basePath%>/js/ext/ext-all-debug.js"></script>
<script type="text/javascript" src="<%=basePath%>/js/ext/ext-lang-zh_CN.js"></script>
<script type="text/javascript" src="<%=basePath%>/js/ext/ux/Toast.js"></script>
<script type="text/javascript" src="<%=basePath%>/js/global.js"></script>
<script language="javascript">
Ext.QuickTips.init();
Ext.BLANK_IMAGE_URL="<%=basePath%>/js/ext/resources/images/default/s.gif";
var _ctxPath="<%=basePath%>";
var _curUser={id:'${userinfor.id}',deptid:'${userinfor.bmid}',deptname:'${userinfor.bmmc}',name:'${userinfor.ygxm}',roles:'${userinfor.roleids}',portalConfig:'${userinfor.portals}',rights:'${userinfor.rightcodes}',isAdmin:'${userinfor.isadmin}'};
function isGranted(a) {
	if (_curUser.isAdmin=='1') {
		return true;
	}
	if (_curUser.rights.indexOf(a) != -1) {
		return true;
	}
	return false;
}
</script>